import request from '/@/utils/request';

/**
 * （不建议写成 request.post(xxx)，因为这样 post 时，无法 params 与 data 同时传参）
 *
 */

export function claimTasksApi() {
	return {
		claimTasksList: (data) => {
			return request({
				url: '/api/normList/list',
				method: 'post',
				data,
			});
		},
		receive: (data) => {
			return request({
				url: '/api/normReceives/add',
				method: 'post',
				data,
			});
		},
		batchAdd: (data) => {
			return request({
				url: '/api/normReceives/batchAdd',
				method: 'post',
				data,
			});
		},
		normReceivesList: (data) => {
			return request({
				url: '/api/normReceives/list',
				method: 'post',
				data,
			});
		},
		normReceivesDetail: (data) => {
			return request({
				url: '/api/normCollects/detail',
				method: 'post',
				data,
			});
		},
		normReceivesModify: (data) => {
			return request({
				url: '/api/normCollects/modify',
				method: 'post',
				data,
			});
		},
		normReceivesRevoke: (data) => {
			return request({
				url: '/api/normReceives/revoke',
				method: 'post',
				data,
			});
		},
		normReceivesReviewTask: (data) => {
			return request({
				url: '/api/normReceives/reviewTask',
				method: 'post',
				data,
			});
		},
		normCollectsAdd: (data) => {
			return request({
				url: '/api/normCollects/add',
				method: 'post',
				data,
			});
		},
		notCollectible: (data) => {
			return request({
				url: '/api/normCollects/notCollectible',
				method: 'post',
				data,
			});
		},
		normCollectsPreserve: (data) => {
			return request({
				url: '/api/normCollects/preserve',
				method: 'post',
				data,
			});
		},
		normCollectsGetPreserve: (data) => {
			return request({
				url: '/api/normCollects/getPreserve',
				method: 'post',
				data,
			});
		},
	};
}


